﻿/**
* Class:  
* Version: alpha
* Author:  Pavel Jacko
* Date:   18/05/2009
* Description:
* 
*/
package syerit.core.display
{
	import flash.display.Shape;
	import flash.geom.ColorTransform;
	public class SolidShape extends Shape 
	{
		private var ct:ColorTransform = new ColorTransform();
		
		public function SolidShape (width:Number,height:Number,color:uint=0,alpha:Number=1)
		{
			//this.alpha=alpha;
			graphics.beginFill (color,alpha);
			graphics.drawRect (0,0,width,height);
			graphics.endFill ();
		}
		
		public function changeColor(col:uint):void{
			ct.color = col;
			this.transform.colorTransform = ct;

		}
	}
}